package cn.tedu.csmall.product.service;

import cn.tedu.csmall.commons.pojo.vo.PageData;
import cn.tedu.csmall.product.pojo.param.PictureAddNewParam;
import cn.tedu.csmall.product.pojo.vo.PictureListItemVO;
import cn.tedu.csmall.product.pojo.vo.PictureStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface PictureService {

    void addNew(PictureAddNewParam pictureAddNewParam);

    void deleteById(Long id);

    PictureStandardVO getStandardById(Long id);

    PageData<PictureListItemVO> listByAlbumId(Long albumId, Integer pageNum);

    PageData<PictureListItemVO> listByAlbumId(Long albumId, Integer pageNum, Integer pageSize);

}
